package models;

import utils.Convert;
import play.db.jpa.Model;

import javax.persistence.Entity;
import javax.persistence.Transient;
import java.util.Date;

/**
 * Created by Administrator on 2018-04-14.
 */
@Entity
public class sys_user extends base_entity {
    public String wx_open_id;
    public String username;
    public String password;
    public String mobile;
    public String common;
    public long status;//账号状态1,正常0封号
    public Date created_date;
    @Transient
    public String roleName;
    public String getRoleName(long id){
        return "超级管理员";
    }
    public String getCreated_date() {
        return Convert.dateToStr(created_date,"");
    }
}
